package com.pro.common.service.sitecontent.model.db;

import com.pro.common.api.CommonConst;
import com.pro.common.api.model.BaseConfigModel;
import com.pro.common.api.model.auth.IOpenConfigClass;
import com.pro.framework.api.enums.IEnumToDbDbCode;
import com.pro.framework.javatodb.annotation.JTDField;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "语言")
@JTDTable(entityId = 309, module = CommonConst.Modules.siteContent)
public class Language extends BaseConfigModel implements IEnumToDbDbCode, IOpenConfigClass {
    private String code;
    private String languageNativeName;
    private String languageEnglishName;
    private String languageChineseName;
    private String countryCode;
    private String countryNativeName;
    private String countryChineseName;
    @Schema(description = "管理端显示")
    @JTDField(defaultValue = "1")
    private Boolean showAdmin;
}
